import Ajax from '@/util/Ajax'

const MallApi = {
    getVendorList(params) {
        return Ajax.post('api/vendor/list', params)
    },
    saveVendor(params) {
        return Ajax.post('api/vendor/save', params)
    },
    getVendorDetail(params) {
        return Ajax.post('api/vendor/get', params)
    },
    getShipperList(params) {
        return Ajax.post('api/shipper/list', params)
    },
    saveShipper(params) {
        return Ajax.post('api/shipper/save', params)
    },
    getShipperDetail(params) {
        return Ajax.post('api/shipper/get', params)
    },
    getCategoryList(params) {
        return Ajax.post('api/category/list', params)
    },
    saveCategory(params) {
        return Ajax.post('api/category/save', params)
    },
    getCategoryDetail(params) {
        return Ajax.post('api/category/get', params)
    },
    setCategorySortNum(params) {
        return Ajax.post('api/category/setSortNum', params);
    },
    getSubCategoryList(params) {
        return Ajax.post('api/subcategory/list', params)
    },
    saveSubCategory(params) {
        return Ajax.post('api/subcategory/save', params)
    },
    getSubCategoryDetail(params) {
        return Ajax.post('api/subcategory/get', params)
    },
    setSubCategorySortNum(params) {
        return Ajax.post('api/subcategory/setSortNum', params);
    },
    getPictureList(params) {
        return Ajax.post('api/picture/list', params)
    },
    savePicture(params) {
        return Ajax.post('api/picture/save', params)
    },
    setPictureSortNum(params) {
        return Ajax.post('api/picture/setSortNum', params);
    },
    deletePicture(params) {
        return Ajax.post('api/picture/delete', params);
    },
    getShippingTemplateList(params) {
        return Ajax.post('api/shppingtemplate/list', params)
    },
    saveShippingTemplate(params) {
        return Ajax.post('api/shppingtemplate/save', params)
    },
    getShippingTemplateDetail(params) {
        return Ajax.post('api/shppingtemplate/get', params)
    },
    getShippingRegionPriceList(params) {
        return Ajax.post('api/shippingregionprice/list', params)
    },
    saveShippingRegionPrice(params) {
        return Ajax.post('api/shippingregionprice/save', params)
    },
    getShippingRegionPriceDetail(params) {
        return Ajax.post('api/shippingregionprice/get', params)
    },
    getProductList(params) {
        return Ajax.post('api/product/list', params)
    },
    saveProduct(params) {
        return Ajax.post('api/product/save', params)
    },
    getProductDetail(params) {
        return Ajax.post('api/product/get', params)
    },
    setProductStatus(params) {
        return Ajax.post('api/product/setStatus', params)
    },
    setProductSortNo(params) {
        return Ajax.post('api/product/setSortNo', params)
    },
    getSkuList(params) {
        return Ajax.post('api/sku/list', params)
    },
    saveSku(params) {
        return Ajax.post('api/sku/save', params)
    },
    setSkuName(params) {
        return Ajax.post('api/sku/setName', params)
    },
    setSkuInitStock(params) {
        return Ajax.post('api/sku/setInitStock', params)
    },
    setSkuSellPrice(params) {
        return Ajax.post('api/sku/setSellPrice', params)
    },
    setSkuCostPrice(params) {
        return Ajax.post('api/sku/setCostPrice', params)
    },
    setSkuStatus(params) {
        return Ajax.post('api/sku/setStatus', params)
    }
}

export default MallApi
